package com.neusoft.bootweb.controller;


import com.neusoft.bootweb.common.MyExceptionHandler;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserControoler {

    @GetMapping(value = "/getmsg001.do",produces = {"application/json;charset=UTF-8"})
    public String getmsg() throws MyExceptionHandler {

        throw new MyExceptionHandler("性情不好，错误！");

    }
}
